<template>
  <div class="home">
    <Header></Header>
    <div id="main">
      <Banner></Banner>
    </div>
    <Footer></Footer>
  </div>
</template>

<script setup>
// vite中导入非ts.js文件时，必须填写文件后缀
import Header from "../components/Header.vue"
import Footer from "../components/Footer.vue"
import Banner from "../components/Banner.vue"

// 测试CORS的跨域配置是否有问题
import http from "../utils/http.js";

// 测试服务端的跨域是否配置成功
// http.get("/home/test").then(response => {
//   console.log(response.data);
// })
</script>

<style scoped>

</style>